package com.jy.api.service;

import com.jy.api.domain.LeaseProduct;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface LeaseProductService {
    LeaseProduct findOne(Integer id);

    void save(LeaseProduct product);

    void delete(Integer id);

    List<LeaseProduct> findByStoreIdOrderByQueueDesc(String storeId);


    List<LeaseProduct> findByStoreIdOrderByProductTypeIdDesc(String storeId);

    List<LeaseProduct> findAll(Specification<LeaseProduct> spec);
}
